package W;

public class AuthUtilsTest {

    public static void main(String[] args) {
        String[] strs ={"this","12","is",null,"java","25","test",""};
        StringBuffer sbf =new StringBuffer();
        int result =0;
        for (String s : strs) {
            try {
                Integer i = Integer.parseInt(s);
                result = i + result;
            } catch (Exception e) {
                if(s!=null){
                    sbf.append(s.toUpperCase()+ " ");
                }
            }

        }
        System.out.println(result);
        System.out.println(sbf.toString());
    }


}
